body {
    margin: 0ex 10ex 0ex 10ex;
    padding: 0ex;
    font-family: helvetica, tahoma, arial, verdana, sans-serif;
    font-size: 2ex;
    color: black;
    background-color:#333333;
    width: 1650px;
}
h1 {
    margin: 1ex 0ex 1ex 0ex;
    padding: 0ex;

    line-height: 3ex;
    font-weight: 900;
    color: #666;
}
h2 {
    margin: 2ex 0ex 1ex 0ex;
    padding: 0ex;
    line-height: 2ex;
    font-weight: 700;
    color: #444;

}
h3 {
    margin: 1ex 0ex 1ex 0ex;
    padding: 0ex;
    line-height: 1.6ex;
    font-weight: 700;
    color: #222;
}
p {
    font-family:"Times New Roman";
    font-size:20px;
}
#Search input[type="text"]{
    width: 20ex;
    height: 3ex;
    font-size: 15px;
    border-radius: 5px;
    border:2px solid black; /* è®¾ç½® 2 åƒç´ å®½åº¦çš„é»‘è‰²è¾¹æ¡† */
}
.custom-input {
    width: 20ex;
    height: 3ex;
    font-size: 15px;
    border-radius:9px;
    border: 2px solid #D3D3D3;
    padding: 5px;

}

.custom-input:focus {
    outline: none;
    border-color: black;

}
.custom-input:focus::placeholder {
    color: transparent; /* è¾“å…¥æ¡†è¢«ç‚¹å‡»æ—¶éšè— placeholder æ–‡å­— */
}
.Button {
    display: inline-block;
    padding: 10px 20px;
    background-color:#005e21;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: medium;
    height: 40px;
    margin: 20px;
}

.Button:hover {
    background-color:#54c07a;
    border: none;
}
.Button2{
    display: inline-block;
    padding: 10px 20px;
    background-color:white;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    font-size: medium;
    font-size: x-large;
    height: 50px;
    margin: 20px;
    color: #4CAF50;
    width:30%;
    margin-left: 70px;
}
.Button2:hover {
    background-color:#cccccc;
    border: none;
}
.custom-link {
    color: gray; /* åˆå§‹çŠ¶æ€ä¸‹çš„é¢œè‰²ä¸ºç°è‰² */
    text-decoration: none; /* åŽ»é™¤ä¸‹åˆ’çº¿ */
}

.custom-link:hover {
    color: green; /* é¼ æ ‡æ‚¬åœæ—¶çš„é¢œè‰²ä¸ºç»¿è‰² */
}

.top{
    top:0;
    height:10vh;
    background-color: #333333;
    color: #ffffff;
    width: 200vh;
    padding: 10px;
}
.sidebar {
    position: fixed;
    top: 8vh;
    left: 0;
    height: 92vh;
    width: 15%;
    background-color: #333;
    color: white;
    padding-top: 0; /* åªè®¾ç½®ä¸Šä¾§å†…è¾¹è·ä¸º20px */
    padding-left: 0; /* å·¦ä¾§å†…è¾¹è·ä¸º0 */
    display: flex;
    flex-direction: column;

}

.option {
    cursor: pointer;
    height: 50px;
    transition: all 0.3s ease;
    display: flex; /* æ·»åŠ flexå¸ƒå±€ */
    align-items: center; /* ä½¿é¡¹ç›®åœ¨äº¤å‰è½´ä¸Šå±…ä¸­å¯¹é½ */
    justify-content: center; /* ä½¿é¡¹ç›®åœ¨ä¸»è½´ä¸Šå±…ä¸­å¯¹é½ */
    text-align: left;
    width: 100%; /* ä¿ç•™å®½åº¦è®¾ç½® */;
    color: white;
}
.option:hover {
    color: green;
    background-color: #005e21;
    font-size: x-large;
}
.option.active {
    color: white;
    background-color: #005e21;
    border-radius: 0;
    font-size: x-large;
}
.content{
    position: fixed;
    top: 8vh;
    right: 0;
    height: 92vh;
    width: 85%;
    color: white;
    padding: 20px;
    display: grid;
    grid-template-columns: repeat(4, 1fr) minmax(200px, auto) minmax(200px, auto); /* å°†å†…å®¹åˆ†ä¸ºå››åˆ—ç­‰å®½ï¼Œæœ€åŽä¸¤åˆ—å®½åº¦è¾ƒå° */ /* å°†å†…å®¹åˆ†ä¸ºä¸‰åˆ—ï¼Œæ¯åˆ—ç­‰åˆ† */
    grid-template-rows: minmax(100px,auto) minmax(100px,auto) repeat(7, 1fr) ;
    grid-gap: 10px;
    background-color:#222222;
    justify-items: center;
}
.content > div, .content label, .content .btn-group, .content .Button {
    display: flex;
    align-items: center;
    justify-content: center;
}

#LogoContent {
    left: 0;
    float: left;
}

.custom-link {
    margin-left: auto;
    padding: 10px;
    float: right;
}
.revenue{
    grid-column: span 1;
    grid-row: span 1;
    background-color:#29FD9A;
    border: none;
    border-radius: 15px;
    padding: 20px;
}
.Productlist{
    grid-column: span 2;
    grid-row: span 9;
    background-color: #333333;
    margin-bottom: 30px;
    border-radius: 15px;
    width:95%;
}
.chart{
    grid-column: span 4;
    grid-row: span 9;
    margin-top: 30px;
    margin-bottom: 10px;
    border-radius: 10px;
    background-color: #333;
    width:100%;
}
#myChart{
    position:relative;
    margin-top: 10px;
}
.navbar {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #222222;
    border-radius:10px;
    grid-column: span 4;
    grid-row: span 1;
}

li {
    float: left;
    border-radius:10px;
}

li:last-child {
    border: none;
    border-radius:10px;
}

li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 80px;
    text-decoration: none;
    border-radius:10px;
    flex: 1;
}

li a:hover:not(.active) {
    background-color: #111;
    border-radius:10px;
}

.active {
    background-color: #4CAF50;
    border-radius:10px;
}
.Search{
    height: fit-content;
    border-radius: 10px;
    grid-column: span 2;
    grid-row: span 1;
    background-color: white;
    align-items: center;
}
.tab-bg{
    grid-column: span 6;
    grid-row:span 8;
    background-color:#333333;
    height:100%;
    width:100%;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.order_tab{
    background-color: #333333;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: white;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:13.3%;
    width:97.5%;
}
.order_tab td {
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
}
.order_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.order_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
.order_tab th:first-child{
    border-top-left-radius:10px;
}
.order_tab th:last-child{
    border-top-right-radius:10px;
}

.select{
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    background-color: #333;
    color: white;
    text-shadow: none;
    border-radius: 10px;
    transition: box-shadow 0.25s ease;
    z-index: 2;
    height:40px;
    width:150px;
    grid-column: span 1;
    align-items: center;
    margin-top: 10px;
}

.select:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.select:before {
    content: "";
    position: absolute;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    top: 14px;
    right: 10px;
    cursor: pointer;
    z-index: -2;
}
.select select {
    cursor: pointer;
    padding-left: 15px;
    padding-top:4px;
    width: 100%;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    height:90%;
    font-size:large;
    color:black;
}
.select option{
    line-height:40px;
    background-color:#333;
}
.select select:focus {
    outline: none;
}
.searchgrp{
    grid-column: span 2;

}
.searchinput{
    width: 200px;
    height: 40px;
    padding-left: 10px;
    /*border: 2px solid #7BA7AB;*/
    border-radius: 10px;
    outline: none;
    background: white;
    color: #9E9C9C;
    margin-bottom:40px;

}
.searchbtn{
    /*position: absolute;*/
    /*top: 0;*/
    /*right: 0px;*/
    /*width: 42px;*/
    /*height: 42px;*/
    /*border: none;*/
    /*background: #7BA7AB;*/
    /*border-radius: 0 5px 5px 0;*/
    /*cursor: pointer;*/
    grid-column: span 1;
    height:40px;
    margin-bottom:40px;
    background-color: #222222;
    color: white;
    margin-left: 20px;

}
.btn-group{
    grid-column: span 1;
    grid-row: span 1;
    height:40px;
    margin-top:10px;
}
.item_tab{
    background-color: #333333;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:13.3%;
    width:97.5%;
}
.item_tab td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
}
.item_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.item_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
.item_tab th:first-child{
    border-top-left-radius:10px;
}
.item_tab th:last-child{
    border-top-right-radius:10px;
}
.Administrators_tab{
    background-color: #333333;
    width: 100%;
    border-collapse: collapse;
    empty-cells: show;
    border-color: #333333;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
    border-spacing:6px 10px;
    table-layout: fixed;
    position:absolute;
    top:12%;
    width:97.5%;
}
.Administrators_tab td{
    border-bottom: 3px solid grey;
    padding: 8px;
    text-align: center;
    line-height: 1.5em;
}
.Administrators_tab thead{
    background-color: green;
    font-size: x-large;
    line-height: 2em;
    padding: 10px;
    border-top-left-radius:10px;
    border-top-right-radius:10px;
}
.Administrators_tab th{
    flex:1;
    text-align: center;
    padding-inline-end:20px;
    padding-inline-start:20px;
    margin:30px;
}
.Administrators_tab th:first-child{
    border-top-left-radius:10px;
}
.Administrators_tab th:last-child{
    border-top-right-radius:10px;
}
.image-upload-container {
    position: relative;
    width: 200px;
    height: 200px;
    border: 2px dashed #999;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    cursor: pointer;
}
.image-upload-container input {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    opacity: 0;
    cursor: pointer;
}
.image-upload-container label {
    position: absolute;
    font-size: 50px;
    color: #999;
    z-index: 1;
    display: none;
}
.image-preview {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}
.AddTab{
   font-size: xx-large;
    text-align: center;
    grid-column: span 4;
    grid-row: span 8;
}
.AddTab th,
td {
    padding: 20px 40px;
    border-top-width: 0;
    border-left-width: 0;
}
form table {
    border-collapse: separate; /* 避免边框重叠 */
    border-spacing: 0 40px; /* 设置行间距为10像素，列间距为0 */
}
.item-input{
    border-radius: 10px;
    color: #222222;
}
.category-select{
    display: inline-block;
    position: relative;
    vertical-align: middle;
    padding: 0;
    overflow: hidden;
    background-color:white;
    color: white;
    text-shadow: none;
    border-radius: 10px;
    transition: box-shadow 0.25s ease;
    z-index: 2;
    height:40px;
    width:150px;
    grid-column: span 1;
    align-items: center;
    margin-top: 10px;
}
.category-select:hover {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
}

.category-select:before {
    content: "";
    position: absolute;
    width:0;
    height:0;
    border: 10px solid transparent;
    border-top-color: #ccc;
    top: 27px;
    right: 15px;
    cursor: pointer;
    z-index: -2;
}
.category-select select {
    cursor: pointer;
    padding-left: 15px;
    padding-top:4px;
    width: 100%;
    border: none;
    background: transparent;
    -webkit-appearance: none;
    -moz-appearance: none;
    height:90%;
    font-size:x-large;
    color:black;
}
.category-select option{
    line-height:60px;
    background-color:white;
}
.category-select select:focus {
    outline: none;
}
.msgList{
    background-color: #cccccc;
    border-radius: 10px;
    grid-row: span 9;
    grid-column: span 2;
    width:95%;

}
.chat{
    width:100%;
    height:100%;
}
.chat-container {
    width:100%;
    margin: 20px auto;
    border-radius: 10px;
    overflow: hidden;

}

.chat-display {
    margin-top:80px;
    padding: 10px;
    background-color: 	#4F4F4F;
    height: 600px;
    overflow-y: scroll;
    border-top-left-radius:10px;
}

.chat-input {
    display: flex;
    align-items: center;
    padding: 10px;
    background-color: 	#333333;
    height:300px;
}

.chat-input input {
    flex-grow: 1;
    margin-right: 10px;
    padding: 5px;
    border: 1px solid #ccc;
    height:200px;
    border-radius: 5px;
    color: white;
    font-size:xx-large;
    background-color:#4F4F4F;
}

.chat-input button {
    padding: 5px 10px;
    background-color: #006400;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}


.chat-display::-webkit-scrollbar {
    width: 10px; /* 设置滚动条宽度 */
}

.chat-display::-webkit-scrollbar-track {
    background-color: #333; /* 设置滚动条背景色 */
}

.chat-display::-webkit-scrollbar-thumb {
    background-color: black; /* 设置滚动条滑块颜色 */
}